package com.fuchenyang.consumer.feign;

import com.fuchenyang.common.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("example-provider")
public interface ProviderFeign {
    @GetMapping("/provider/a")
    JsonResult a();

    @GetMapping("/provider/b/{name}")
    JsonResult b(@PathVariable("name") String name);
}